<template>
    <div class="login">
        <button @click="login">登录</button>
    </div>

</template>
<script>
import { mapMutations } from "vuex";
export default {
  methods: {
    ...mapMutations({ save: "auth/save" }),
    login() {
      	this.$store.commit("auth/save", {});
      	this.$router.push("/");
    }
  }
};
</script>
<style lang="less">
.login {
	font-size: 16px;
}
</style>

